300
How do I change the cell's foreground color
with thisform.G2antt1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .AddItem("Cell 1")
		.DefaultItem = h
		.CellValue(0,1) = "Cell 2"
		.DefaultItem = h
		.CellForeColor(0,1) = RGB(255,0,0)
	endwith
endwith
299
How do I change the visual effect for the cell, using your EBN files
with thisform.G2antt1
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .AddItem("Cell 1")
		.DefaultItem = h
		.CellValue(0,1) = "Cell 2"
		.DefaultItem = h
		.CellBackColor(0,1) = 0x1000000
	endwith
endwith
298
How do I change the cell's background color
with thisform.G2antt1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .AddItem("Cell 1")
		.DefaultItem = h
		.CellValue(0,1) = "Cell 2"
		.DefaultItem = h
		.CellBackColor(0,1) = RGB(255,0,0)
	endwith
endwith
297
How do I change the caption or value for a particular cell
with thisform.G2antt1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		.DefaultItem = .AddItem("Cell 1")
		.CellValue(0,1) = "Cell 2"
	endwith
endwith
296
How do I get the handle of the cell
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		.CellBold(Null,.ItemCell(h,0)) = .T.
	endwith
endwith
295
How do I retrieve the focused item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		.DefaultItem = .FocusItem
		.ItemBold(0) = .T.
	endwith
endwith
294
How do I get the number or count of child items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		.AddItem(.ChildCount(h))
	endwith
endwith
293
How do I enumerate the visible items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		h = .AddItem("Root 2")
		.DefaultItem = .FirstVisibleItem
		.ItemBold(0) = .T.
		.DefaultItem = .NextVisibleItem(.FirstVisibleItem)
		.ItemBold(0) = .T.
	endwith
endwith
292
How do I enumerate the siblings items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		h = .AddItem("Root 2")
		.DefaultItem = .NextSiblingItem(.FirstVisibleItem)
		.ItemBold(0) = .T.
		.DefaultItem = .PrevSiblingItem(.NextSiblingItem(.FirstVisibleItem))
		.ItemBold(0) = .T.
	endwith
endwith
291
How do I get the parent item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		.DefaultItem = .ItemParent(.ItemChild(h))
		.ItemBold(0) = .T.
	endwith
endwith
290
How do I get the first child item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		.DefaultItem = .ItemChild(h)
		.ItemBold(0) = .T.
	endwith
endwith
289
How do I enumerate the root items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		h = .AddItem("Root 2")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = .RootItem(0)
		.ItemBold(0) = .T.
		.DefaultItem = .RootItem(1)
		.ItemUnderline(0) = .T.
	endwith
endwith
288
I have a hierarchy, how can I count the number of root items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root 1")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		h = .AddItem("Root 2")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.AddItem(.RootCount)
	endwith
endwith
287
How can I make an item unselectable, or not selectable
with thisform.G2antt1
	.Columns.Add("Column")
	with .Items
		h = .AddItem("unselectable - you can't get selected")
		.DefaultItem = h
		.SelectableItem(0) = .F.
		.AddItem("selectable")
	endwith
endwith
286
How can I hide or show an item
with thisform.G2antt1
	.Columns.Add("Column")
	with .Items
		h = .AddItem("hidden")
		.DefaultItem = h
		.ItemHeight(0) = 0
		.DefaultItem = h
		.SelectableItem(0) = .F.
		.AddItem("visible")
	endwith
endwith
285
How can I change the height for all items
with thisform.G2antt1
	.DefaultItemHeight = 32
	.Columns.Add("Column")
	.Items.AddItem("One")
	.Items.AddItem("Two")
endwith
284
How do I change the height of an item
with thisform.G2antt1
	.ScrollBySingleLine = .T.
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("height")
		.ItemHeight(0) = 128
	endwith
	.Items.AddItem("enabled")
endwith
283
How do I disable or enable an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("disabled")
		.EnableItem(0) = .F.
	endwith
	.Items.AddItem("enabled")
endwith
282
How do I display as strikeout a cell
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("strikeout")
		.CellStrikeOut(0,0) = .T.
	endwith
endwith
281
How do I display as strikeout a cell or an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("gets <s>strikeout</s> only a portion of text")
		.CellValueFormat(0,0) = 1
	endwith
endwith
280
How do I display as strikeout an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("strikeout")
		.ItemStrikeOut(0) = .T.
	endwith
endwith
279
How do I underline a cell
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("underline")
		.CellUnderline(0,0) = .T.
	endwith
endwith
278
How do I underline a cell or an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("gets <u>underline</u> only a portion of text")
		.CellValueFormat(0,0) = 1
	endwith
endwith
277
How do I underline an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("underline")
		.ItemUnderline(0) = .T.
	endwith
endwith
276
How do I display as italic a cell
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("italic")
		.CellItalic(0,0) = .T.
	endwith
endwith
275
How do I display as italic a cell or an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("gets <i>italic</i> only a portion of text")
		.CellValueFormat(0,0) = 1
	endwith
endwith
274
How do I display as italic an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("italic")
		.ItemItalic(0) = .T.
	endwith
endwith
273
How do I bold a cell
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("bold")
		.CellBold(0,0) = .T.
	endwith
endwith
272
How do I bold a cell or an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("gets <b>bold</b> only a portion of text")
		.CellValueFormat(0,0) = 1
	endwith
endwith
271
How do I bold an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("bold")
		.ItemBold(0) = .T.
	endwith
endwith
270
How do I change the foreground color for the item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		hC = .InsertItem(h,Null,"Child 1")
		.DefaultItem = hC
		.ItemForeColor(0) = RGB(255,0,0)
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
269
How do I change the visual appearance for the item, using your EBN technology

with thisform.G2antt1
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		hC = .InsertItem(h,Null,"Child 1")
		.DefaultItem = hC
		.ItemBackColor(0) = 0x1000000
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
268
How do I change the background color for the item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		hC = .InsertItem(h,Null,"Child 1")
		.DefaultItem = hC
		.ItemBackColor(0) = RGB(255,0,0)
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
267
How do I expand or collapse an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
266
How do I associate an extra data to an item
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		.DefaultItem = .AddItem("item")
		.ItemData(0) = "your extra data"
	endwith
endwith
265
How do I get the number or count of items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
	with .Items
		.AddItem(.ItemCount)
	endwith
endwith
264
How can I specify the width of the ActiveX control, when using the InsertControlItem property
with thisform.G2antt1
	.ScrollBySingleLine = .F.
	.TreeColumnIndex = 1
	.DrawGridLines = -1
	.Columns.Add("C1")
	.Columns.Add("C2")
	.Columns.Add("C3")
	with .Items
		h = .InsertControlItem(Null,"MSCAL.Calendar")
		.DefaultItem = h
		.ItemWidth(0) = 128
		.DefaultItem = h
		.CellValue(0,0) = "This is a bit of text that is shown in the first column"
		.DefaultItem = h
		.CellSingleLine(0,0) = .F.
		.DefaultItem = h
		.CellValue(0,2) = "This is a bit of text that is shown in the third column"
		.DefaultItem = h
		.CellSingleLine(0,2) = .F.
	endwith
endwith
263
How can I put the ActiveX control in a different column, when using the InsertControlItem property
with thisform.G2antt1
	.ScrollBySingleLine = .F.
	.DrawGridLines = -1
	.Columns.Add("C1")
	.Columns.Add("C2")
	.Columns.Add("C3")
	with .Items
		h = .InsertControlItem(Null,"MSCAL.Calendar")
		.DefaultItem = h
		.CellValue(0,0) = "This is a bit of text that is shown in the first column"
		.DefaultItem = h
		.CellSingleLine(0,0) = .F.
		.DefaultItem = h
		.ItemWidth(0) = -32001
		.DefaultItem = h
		.CellValue(0,2) = "This is a bit of text that is shown in the third column"
		.DefaultItem = h
		.CellSingleLine(0,2) = .F.
	endwith
endwith
262
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem
with thisform.G2antt1
	.Columns.Add("Default")
	.ScrollBySingleLine = .F.
	.LinesAtRoot = -1
	with .Items
		h = .InsertControlItem(Null,"MSCAL.Calendar")
		.InsertItem(h,Null,.ItemControlID(h))
		.DefaultItem = h
		.ExpandItem(0) = .T.
		h = .InsertControlItem(Null,"MSChart20Lib.MSChart")
		.DefaultItem = h
		.ItemAppearance(0) = 4
		.InsertItem(h,Null,.ItemControlID(h))
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
261
How can I change the height of newly created ActiveX control, using the InsertControlItem
with thisform.G2antt1
	.Columns.Add("Default")
	.ScrollBySingleLine = .F.
	with .Items
		.DefaultItem = .InsertControlItem(Null,"MSCAL.Calendar")
		.ItemHeight(0) = 64
		.DefaultItem = .InsertControlItem(Null,"MSChart20Lib.MSChart")
		.ItemAppearance(0) = 4
	endwith
endwith
260
How can I change the border for newly created ActiveX control, using the InsertControlItem
with thisform.G2antt1
	.Columns.Add("Default")
	.ScrollBySingleLine = .F.
	with .Items
		.DefaultItem = .InsertControlItem(Null,"MSCAL.Calendar")
		.ItemAppearance(0) = 2
		.DefaultItem = .InsertControlItem(Null,"MSChart20Lib.MSChart")
		.ItemAppearance(0) = 4
	endwith
endwith
259
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		with .ItemObject(.InsertControlItem(h,"MSCAL.Calendar"))
			.BackColor = RGB(255,255,255)
			.GridCellEffect = 0
			.ShowTitle = .F.
			.ShowDateSelectors = .F.
		endwith
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
258
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		with .ItemObject(.InsertControlItem(h,"MSCAL.Calendar"))
			.BackColor = RGB(255,255,255)
		endwith
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
257
How can I insert an ActiveX control
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		.InsertControlItem(h,"MSCAL.Calendar")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
256
How can I change at runtime the parent of the item
with thisform.G2antt1
	.LinesAtRoot = -1
	.Columns.Add("Default")
	with .Items
		hP = .AddItem("Root")
		hC = .AddItem("Child")
		.SetParent(hC,hP)
	endwith
endwith
255
How can I sort the items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
	.Columns.Item("Default").SortOrder = 2
endwith
254
How do I sort the child items
with thisform.G2antt1
	.Columns.Add("Default")
	with .Items
		h = .AddItem("Root")
		.InsertItem(h,Null,"Child 1")
		.InsertItem(h,Null,"Child 2")
		.DefaultItem = h
		.ExpandItem(0) = .T.
		.SortChildren(h,0,.F.)
	endwith
endwith
253
How can I ensure or scroll the control so the item fits the control's client area
with thisform.G2antt1
	.Columns.Add("Default")
	h = .Items.AddItem("item")
	.Items.EnsureVisibleItem(h)
endwith
252
How can I remove or delete all items
with thisform.G2antt1
	.Columns.Add("Default")
	.Items.AddItem("removed item")
	.Items.RemoveAllItems
endwith
251
How can I remove or delete an item
with thisform.G2antt1
	.Columns.Add("Default")
	h = .Items.AddItem("removed item")
	.Items.RemoveItem(h)
endwith
250
How can I add or insert child items
with thisform.G2antt1
	.LinesAtRoot = -1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .AddItem("Cell 1")
		.DefaultItem = h
		.CellValue(0,1) = "Cell 2"
		.DefaultItem = .InsertItem(h,Null,"Cell 3")
		.CellValue(0,1) = "Cell 4"
		.DefaultItem = .InsertItem(h,Null,"Cell 5")
		.CellValue(0,1) = "Cell 6"
		.DefaultItem = h
		.ExpandItem(0) = .T.
	endwith
endwith
249
How can I add or insert a child item
with thisform.G2antt1
	.LinesAtRoot = -1
	.Columns.Add("Default")
	with .Items
		.InsertItem(.AddItem("root"),Null,"child")
	endwith
endwith
248
How can I add or insert an item
with thisform.G2antt1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		.DefaultItem = .AddItem("Cell 1")
		.CellValue(0,1) = "Cell 2"
		h = .AddItem("Cell 3")
		.DefaultItem = h
		.CellValue(0,1) = "Cell 4"
	endwith
endwith
247
How can I add or insert an item
with thisform.G2antt1
	.Columns.Add("Default")
	.Items.AddItem("new item")
endwith
246
How can I get the columns as they are shown in the control's sortbar
with thisform.G2antt1
	var_Object = .Columns.ItemBySortPosition(0)
endwith
245
How can I access the properties of a column
with thisform.G2antt1
	.Columns.Add("A")
	.Columns.Item("A").HeaderBold = .T.
endwith
244
How can I remove all the columns
with thisform.G2antt1
	.Columns.Clear
endwith
243
How can I remove a column
with thisform.G2antt1
	.Columns.Remove("A")
endwith
242
How can I get the number or the count of columns
with thisform.G2antt1
	var_Count = .Columns.Count
endwith
241
How can I change the font for all cells in the entire column
with thisform.G2antt1
	f = CreateObject("StdFont")
	with f
		.Name = "Tahoma"
		.Size = 12
	endwith
	with .ConditionalFormats.Add("1")
		.Font = f
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
240
How can I change the background color for all cells in the column
with thisform.G2antt1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.BackColor = RGB(255,0,0)
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
239
How can I change the foreground color for all cells in the column
with thisform.G2antt1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.ForeColor = RGB(255,0,0)
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
238
How can I show as strikeout all cells in the column
with thisform.G2antt1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.StrikeOut = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
237
How can I underline all cells in the column
with thisform.G2antt1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.Underline = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
236
How can I show in italic all data in the column
with thisform.G2antt1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.Italic = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
235
How can I bold the entire column
with thisform.G2antt1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.Bold = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
234
How can I display a computed column and highlight some values that are negative or less than a value
with thisform.G2antt1
	.Columns.Add("A")
	.Columns.Add("B")
	.Columns.Add("(A+B)*1.19").ComputedField = "(dbl(%0) + dbl(%1)) * 1.19"
	with .Items
		.DefaultItem = .AddItem(1)
		.CellValue(0,1) = 2
	endwith
	with .Items
		.DefaultItem = .AddItem(10)
		.CellValue(0,1) = 20
	endwith
	var_ConditionalFormat = .ConditionalFormats.Add("dbl(%2) > 10")
	with var_ConditionalFormat
		.Bold = .T.
		.ForeColor = RGB(255,0,0)
		.ApplyTo = 2 && 0x2
	endwith
endwith
233
Can I display a computed column so it displays the VAT, or SUM
with thisform.G2antt1
	.Columns.Add("A")
	.Columns.Add("B")
	.Columns.Add("(A+B)*1.19").ComputedField = "(dbl(%0) + dbl(%1)) * 1.19"
	with .Items
		.DefaultItem = .AddItem(1)
		.CellValue(0,1) = 2
	endwith
	with .Items
		.DefaultItem = .AddItem(10)
		.CellValue(0,1) = 20
	endwith
endwith
232
How can I show a column that adds values in the cells
with thisform.G2antt1
	.Columns.Add("A")
	.Columns.Add("B")
	.Columns.Add("A+B").ComputedField = "dbl(%0) + dbl(%1)"
	with .Items
		.DefaultItem = .AddItem(1)
		.CellValue(0,1) = 2
	endwith
	with .Items
		.DefaultItem = .AddItem(10)
		.CellValue(0,1) = 20
	endwith
endwith
231
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
with thisform.G2antt1
	var_Column = .Columns.Add("Filter")
	with var_Column
		.FilterOnType = .T.
		.DisplayFilterButton = .T.
		.AutoSearch = 1
	endwith
	.Items.AddItem("Canada")
	.Items.AddItem("USA")
endwith
230
Is there any function to filter the control's data as I type, something like filter on type
with thisform.G2antt1
	var_Column = .Columns.Add("Filter")
	with var_Column
		.FilterOnType = .T.
		.DisplayFilterButton = .T.
	endwith
	.Items.AddItem("Canada")
	.Items.AddItem("USA")
endwith
229
How can I programmatically filter a column
with thisform.G2antt1
	with .Columns.Add("Filter")
		.DisplayFilterButton = .T.
		.FilterType = 2
	endwith
	.Items.AddItem()
	.Items.AddItem("not empty")
	.ApplyFilter
endwith
228
How can I show or display the control's filter
with thisform.G2antt1
	.Columns.Add("Filter").DisplayFilterButton = .T.
endwith
227
How can I customize the items being displayed in the drop down filter window
with thisform.G2antt1
	with .Columns.Add("Custom Filter")
		.DisplayFilterButton = .T.
		.DisplayFilterPattern = .F.
		var_s = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.t"
		var_s = var_s + "xt|*.log"
		.CustomFilter = var_s
		.FilterType = 3
		.Filter = "*.xls"
	endwith
	.Items.AddItem("excel.xls")
	.Items.AddItem("word.doc")
	.Items.AddItem("pp.pps")
	.Items.AddItem("text.txt")
	.ApplyFilter
endwith
226
How can I change the order or the position of the columns in the sort bar
with thisform.G2antt1
	.SortBarVisible = .T.
	.SortBarColumnWidth = 48
	.Columns.Add("C1").SortOrder = 1
	.Columns.Add("C2").SortOrder = 2
	.Columns.Item("C2").SortPosition = 0
endwith
225
How do I arrange my columns on multiple levels
with thisform.G2antt1
	.Columns.Add("S").Width = 32
	.Columns.Add("Level 2").LevelKey = 1
	.Columns.Add("Level 3").LevelKey = 1
	.Columns.Add("Level 4").LevelKey = 1
	.Columns.Add("Level 1").LevelKey = "2"
	.Columns.Add("Level 2").LevelKey = "2"
	.Columns.Add("Level 3").LevelKey = "2"
	.Columns.Add("Level 4").LevelKey = "2"
	.Columns.Add("E").Width = 32
endwith
224
How do I arrange my columns on multiple lines
with thisform.G2antt1
	.HeaderHeight = 32
	.Columns.Add("").HTMLCaption = "Line 1<br>Line 2"
endwith
223
How can I display all cells using HTML format
with thisform.G2antt1
	.Columns.Add("HTML").Def(17) = 1
	.Items.AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.")
endwith
222
How can I display all cells using multiple lines
with thisform.G2antt1
	.Columns.Add("MultipleLine").Def(16) = .F.
	.Columns.Add("SingleLine").Def(16) = .T.
	with .Items
		.DefaultItem = .AddItem("This is a bit of long text that should break the line")
		.CellValue(0,1) = "this is a bit of long text that's displayed on a single line"
	endwith
endwith
221
How do change the vertical alignment for all cells in the column
with thisform.G2antt1
	.Columns.Add("MultipleLine").Def(16) = .F.
	.Columns.Add("VAlign").Def(6) = 2
	with .Items
		.DefaultItem = .AddItem("This is a bit of long text that should break the line")
		.CellValue(0,1) = "bottom"
	endwith
	with .Items
		.DefaultItem = .AddItem("This is a bit of long text that should break the line")
		.CellValue(0,1) = "bottom"
	endwith
endwith
220
How do change the foreground color for all cells in the column
with thisform.G2antt1
	.Columns.Add("ForeColor").Def(5) = 255
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
219
How do change the background color for all cells in the column
with thisform.G2antt1
	.Columns.Add("BackColor").Def(4) = 255
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
218
How do I show buttons for all cells in the column
with thisform.G2antt1
	with .Columns.Add("Button")
		.Def(2) = .T.
		.Def(3) = .T.
	endwith
	.Items.AddItem(" Button 1 ")
	.Items.AddItem(" Button 2 ")
endwith
217
How do I show buttons for all cells in the column
with thisform.G2antt1
	.Columns.Add("Button").Def(2) = .T.
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
216
How do I display radio buttons for all cells in the column
with thisform.G2antt1
	.Columns.Add("Radio").Def(1) = .T.
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
215
How do I display checkboxes for all cells in the column
with thisform.G2antt1
	.Columns.Add("Check").Def(0) = .T.
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
214
How can I display a tooltip when the cursor hovers the column
with thisform.G2antt1
	.Columns.Add("tooltip").ToolTip = "This is a bit of text that is shown when user hovers the column."
endwith
213
Is there any function to assign a key to a column instead using its name or capion
with thisform.G2antt1
	.Columns.Add("Data").Key = "DKey"
	.Columns.Item("DKey").Caption = "new caption"
endwith
212
Is there any function to assign any extra data to a column
with thisform.G2antt1
	.Columns.Add("Data").Data = "your extra data"
endwith
211
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
with thisform.G2antt1
	.Columns.Add("Sort").DefaultSortOrder = .T.
endwith
210
How can I specify the maximum width for the column, if I use WidthAutoResize property
with thisform.G2antt1
	with .Columns.Add("Auto")
		.WidthAutoResize = .T.
		.MinWidthAutoResize = 32
		.MaxWidthAutoResize = 128
	endwith
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
209
How can I specify the minimum width for the column, if I use WidthAutoResize property
with thisform.G2antt1
	with .Columns.Add("Auto")
		.WidthAutoResize = .T.
		.MinWidthAutoResize = 32
	endwith
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
208
Is there any option to resize the column based on its data, captions
with thisform.G2antt1
	.Columns.Add("A").WidthAutoResize = .T.
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith
207
How can I align the icon in the column's header in the center
with thisform.G2antt1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	with .Columns.Add("")
		.HeaderImage = 1
		.HeaderImageAlignment = 1
	endwith
endwith
206
How do I align the icon in the column's header to the right
with thisform.G2antt1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	with .Columns.Add("ColumnName")
		.HeaderImage = 1
		.HeaderImageAlignment = 2
	endwith
endwith
205
How do I show or hide the sorting icons, but still need sorting
with thisform.G2antt1
	.Columns.Add("Sorted").SortOrder = 1
	.Columns.Item(0).DisplaySortIcon = .F.
endwith
204
How do I enable or disable the entire column
with thisform.G2antt1
	.Columns.Add("C1")
	.Columns.Add("Disabled").Enabled = .F.
	with .Items
		.DefaultItem = .AddItem(0)
		.CellValue(0,1) = "0.1"
	endwith
	with .Items
		.DefaultItem = .AddItem(1)
		.CellValue(0,1) = "1.1"
	endwith
endwith
203
How do I disable drag and drop columns
with thisform.G2antt1
	.Columns.Add("C1").AllowDragging = .F.
	.Columns.Add("C2").AllowDragging = .F.
endwith
202
How do I disable resizing a column at runtime
with thisform.G2antt1
	.Columns.Add("Unsizable").AllowSizing = .F.
	.Columns.Add("C2")
	.Columns.Add("C3")
	.Columns.Add("C4")
endwith
201
How can I align the column to the right, and its caption too
with thisform.G2antt1
	with .Columns.Add("Column")
		.Alignment = 2
		.HeaderAlignment = 2
	endwith
	.Items.AddItem(0)
	.Items.AddItem(1)
endwith